import { Controller } from "egg";
import helper from "../../helper";

export default class UserController extends Controller implements RestfulController {
  async create() {
    this.ctx.body = helper.success("新增成功");
    this.ctx.status = 200;
  }
  async destroy() {
    this.ctx.body = helper.success("删除成功");
    this.ctx.status = 200;
  }
  async update() {
    this.ctx.body = helper.success("修改成功");
    this.ctx.status = 200;
  }
  index() {
    const { ctx } = this;
    // ctx.body = helper.success("查询列表成功");
    // ctx.status = 200;
    ctx.crul("/security/login");
  }
  async show() {
    this.ctx.body = helper.success("查询明细成功");
    this.ctx.status = 200;
  }
  async page() {
    this.ctx.body = helper.success("查询分页列表成功");
    this.ctx.status = 200;
  }
}
